'use strict';
/**

 * @ngdoc directive

 * @name jgappApp.directive:userInfo

 * @description

 * # userInfo

 */
angular.module('jgappApp')
.directive('userInfo', function () {
  return {
    scope:{
      no:"=no",
      date:"=date",
      depname:"=depname",
      username:"=username",
    },
    template: '<div class="section">' +
      '<div class="list-item flex">' +
      '<div class="w40 c9">编号</div>' +
      '<div class="w60">{{no}}</div></div>' +
      '<div class="list-item flex">' +
      '<div class="w40 c9">申请部门</div>' +
      '<div class="w60"><span ng-bind-html="depname|parsetohtml|trusthtml"></span></div></div>' +
      '<div class="list-item flex"><div class="w40 c9">申请日期</div>' +
      '<div class="w60">{{date|dateFmt}}</div></div>' +
      '<div class="list-item flex"><div class="w40 c9">申请人</div>' +
      '<div class="w60">{{username}}</div></div>' +
      '</div>',
    restrict: 'AE',
    replace:true,
    link: function postLink(scope, element, attrs) {
      // element.text('this is the userInfo directive');
    }
  };

});